package com.yang.account.service;

import com.yang.account.dao.AccountImp;
import com.yang.springcloud.pojo.ShoppingCartGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class AccountServiceImp implements AccountService {
    @Autowired
    AccountImp accountImp;

    @Override
    @Transactional
    public Map<String, Object> updateBalance(List<ShoppingCartGoods> goodsList, int userid) {
        return accountImp.updateBalance(goodsList, userid);
    }
}
